
#ifndef MESSAGE_H_
#define MESSAGE_H_
#include <sys/types.h>
#include <string>
#include <string.h>
#include <sstream>
#include <stdio.h>

/*
 *
 */
class Message {

public:

	Message();
	Message(unsigned int t, unsigned long data);
	Message(char* buffer, int size);
	virtual ~Message();
	int size();
	char* serialize();
    unsigned long getData() const
    {
        return data;
    }

    unsigned int getType() const
    {
        return type;
    }

    void setData(unsigned long  data)
    {
        this->data = data;
    }

    void setType(unsigned int type)
    {
        this->type = type;
    }

private:
	unsigned int type;
	unsigned long data;

};

#endif /* MESSAGE_H_ */
